import request from "@/utils/request";

// 费用项目列表
export function listBillItem(params) {
  return request({
    url: "/enterprise/bill/item/list",
    method: "get",
    params: params
  });
}

// 新增费用列表
export function addBillItem(data) {
  return request({
    url: "/enterprise/bill/item",
    method: "post",
    data: data
  });
}

// 费用项目详情
export function getBillItem(id) {
  return request({
    url: "/enterprise/bill/item/"+id,
    method: "get",
  });
}

// 修改费用项目
export function updateBillItem(data) {
  return request({
    url: "/enterprise/bill/item",
    method: "put",
    data: data
  });
}

// 删除费用项目
export function deleteBillItem(id) {
  return request({
    url: "/enterprise/bill/item/"+id,
    method: "delete",
  });
}
